#!/usr/bin/env node
const err = console.error;
      
if(process.argv.length !== 3){
  err('命令行参数格式：cmd base64_string');
  process.exit(1);
}

const buf = Buffer.from(process.argv[2],'base64');
const info = buf.toString('utf8').split(':');
if(info.length !== 2){
  err('信息错误');
  process.exit(2);
}
console.log('usr:%s\npwd:%s',info[0],info[1]);
